<template>
 <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
   <div class="common-layout" >
    <el-container >
      <el-aside width="200px">
       <img alt="Vue logo" src="./assets/aaa.png"> 
 
<el-row class="tac">
    <el-col  >
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
         
      >
         <el-menu-item index="4">
          <el-icon><Odometer /></el-icon>
           <router-link to="/" id="xiahua">仪表盘</router-link>
        </el-menu-item>
      </el-menu>
    </el-col>
    
  </el-row>
         
   <div class="demo-collapse">
      
    <el-collapse accordion>
        
       
      
      <el-collapse-item name="1">
       
        <template #title>
           
          <el-icon  >
            <Menu />
          </el-icon>
          常规设置
        </template>
        <div>
            <router-link to="/a2" id="xiahua">教师管理</router-link>
        </div><br>
        <div>
           <router-link to="/a3" id="xiahua">学生管理</router-link>
        </div><br>
        <div>
             <router-link to="/a4" id="xiahua">公告管理 </router-link>
        </div><br>
        <div>
            <router-link to="/a5" id="xiahua">系统配置</router-link>
        </div><br>
        <div>
            <router-link to="/a6" id="xiahua">判断服务器</router-link>
        </div>
      </el-collapse-item>
      
       <el-collapse-item name="2">
        <template #title>
          <el-icon  >
            <Aim />
          </el-icon>
          问题  
        </template>
        <div>
           <router-link to="/a7" id="xiahua"> 问题列表</router-link>
        </div><br>
        <div>
            <router-link to="/a8" id="xiahua"> 增加项目</router-link>
        </div><br>
        <div>
            <router-link to="/a9" id="xiahua"> 导入导出项目</router-link>
        </div><br>
         
      </el-collapse-item>
     
      <el-collapse-item name="3">
        <template #title>
          <el-icon  >
            <Trophy />
          </el-icon>
          练习&比赛
        </template>
        <div>
          <router-link to="/a10"> 比赛列表 </router-link>
        </div><br>
        <div>
           <router-link to="/a11"> 创建比赛  </router-link>
        </div> 
         </el-collapse-item>
         
          
          <el-collapse-item name="4">
        <template #title>
          <el-icon  >
            <Collection />
          </el-icon>
          课程
        </template>
        <div>
          <router-link to="/a12" id="xiahua">课程列表</router-link>
        </div><br>
        <div>
           <router-link to="/a13" id="xiahua">课程创建 </router-link>
        </div> 
      </el-collapse-item>

       </el-collapse>
  </div>

      </el-aside>
      <el-container>
        <el-header><HeadVue /></el-header>
        <el-main><router-view></router-view></el-main>
        <el-footer><JdCsfooter /></el-footer>
      </el-container>
    </el-container>
  </div>
 
  
  
     
</template>

<script>
import {Menu,Aim,Trophy,Collection,Odometer} from '@element-plus/icons-vue'
 
 
    import JdCsfooter from './components/JdCsfooter.vue'
export default {
  name: 'App',
  components: {
       Menu,
      Aim,
      Trophy,
      Collection,
      Odometer,
      JdCsfooter
     
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
   
  color: #2c3e50;
   
}
 
 .el-header{
   background-color: #F9FAFC;
    color: #333;
    text-align: center;
    line-height: 60px;
 }
    .el-footer {
    background-color: #EDECEC;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color:  white;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #EDECEC;
    color: #333;
    height: 600px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
   
  #a{
  line-height: 30px;
  text-align: center;
  }
  #left{
    float: left;
  }
 img{
   margin-top: 50px;
   width: 110px;
   height: 110px;
 }
 #xiahua{
    text-decoration: none;
 }
</style>